<<<<<<< HEAD
<?php
header("Content-Type: text/html;charset=utf-8");
include_once './includes/auth.php';
include_once './includes/res.php';
include_once './includes/header.php';

if (isset($_POST['goal']) && $_POST['goal']) {
    require_once './service/GoalService.php';
    $goalService = new GoalService();
    $goalService->saveGoal($_POST['goal']);
}
?>
<div class="container">
    <?php 
    require_once 'widgets/w_goal.php';
    render_goal_menu(2);
    ?>
    <div class="row"></div>
    
    <section>
      <!--  
      <div class="page-header">
        <h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
      </div>
      -->
    </section>
    <div class="row">
        <div class="span8">
          <form class="form-horizontal" method="post">
            <fieldset>
              <div class="control-group">
                <label class="control-label" for="input01">目标</label>
                <div class="controls">
                  <input type="text" class="input-xlarge" id="input01" name="goal">
                </div>
              </div>
              
              <div class="form-actions">
                <button type="submit" class="btn btn-primary">保存</button>
                <button type="reset" class="btn">取消</button>
              </div>
            </fieldset>
          </form>
        </div>
    </div>
</div>
<?php 
include_once './includes/footer.php';
?>
=======
<?php
header("Content-Type: text/html;charset=utf-8");
include_once './includes/auth.php';
include_once './includes/res.php';
include_once './includes/header.php';

if (isset($_POST['goal']) && $_POST['goal']) {
    require_once './service/GoalService.php';
    $goalService = new GoalService();
    $goalService->saveGoal($_POST['goal']);
}
?>
<div class="container">
    <?php 
    require_once 'widgets/w_goal.php';
    render_goal_menu(2);
    ?>
    <div class="row"></div>
    
    <section>
      <!--  
      <div class="page-header">
        <h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
      </div>
      -->
    </section>
    <div class="row">
        <div class="span8">
          <form class="form-horizontal" method="post">
            <fieldset>
              <div class="control-group">
                <label class="control-label" for="input01">目标</label>
                <div class="controls">
                  <input type="text" class="input-xlarge" id="input01" name="goal">
                </div>
              </div>
              
              <div class="form-actions">
                <button type="submit" class="btn btn-primary">保存</button>
                <button type="reset" class="btn">取消</button>
              </div>
            </fieldset>
          </form>
        </div>
    </div>
</div>
<?php 
include_once './includes/footer.php';
?>
>>>>>>> 20d6c557d209a3f376420616f57b4bd953611975
